package com.oig.sys.workflow.dto;

import com.oig.common.validator.GroupAdd;
import com.oig.common.validator.GroupChange;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotEmpty;


@Getter
@Setter
@ToString
public class ApprovalAgentReqDto {

    @Schema(description = "系统编号")
    private String sysCode;
    @Schema(description = "业务类型")
    @NotEmpty(message = "参数错误，业务类型不能为空", groups= {GroupAdd.class, GroupChange.class})
    private String bizType;
    @Schema(description = "业务单据id")
    @NotEmpty(message = "参数错误，业务单据id为空", groups= {GroupAdd.class, GroupChange.class})
    private String bizId;
    @Schema(description = "操作用户工号")
    @NotEmpty(message = "参数错误，操作用户工号不能为空", groups= {GroupAdd.class, GroupChange.class})
    private String userId;

    @Schema(description = "审批数据（json字符串）")
    @NotEmpty(message = "参数错误，审批数据不能为空", groups= {GroupAdd.class})
    private String applyData;

}
